home *** CD-ROM | disk | FTP | other *** search
- ; NAME clock
- ; PURPOSE displays the real time clock
- ; DESIGN
- ; set up registers
- ; call operating system command
- ;
- ;
- ; COMMENTS uses OS_Word, an operating system call
- ; this takes the following parameters
- ; r0 = 14 this is the reason code since OS_Word
- ; performs several tasks
- ; r1 points to an area of memory into which
- ; the time will be placed
- ; [r1] = 0 this is the second parameter, zero means
- ; read the clock
-
- mov r0, #14
- mov r1, r4
- mov r6, #0
- str r6, [r1]
- swi "OS_Word"
-